﻿using Abp.EntityFrameworkCore;
using Abp.Modules;
using Abp.Reflection.Extensions;

namespace Ny.CenterServers.EntityFrameworkCore
{
    [DependsOn(
        typeof(CenterServersCoreModule), 
        typeof(AbpEntityFrameworkCoreModule))]
    public class CenterServersEntityFrameworkCoreModule : AbpModule
    {
        public override void PreInitialize()
        {
            //启用租户
            Configuration.MultiTenancy.IsEnabled = true;
            base.PreInitialize();
        }
        public override void Initialize()
        {
            IocManager.RegisterAssemblyByConvention(typeof(CenterServersEntityFrameworkCoreModule).GetAssembly());
        }
    }
}